//导入redux创建Reducer方法
import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
//导入reducers
import rootReducer from './reducers'

//创建一个Reducer
export default createStore(
    rootReducer,
    applyMiddleware(
        thunk
    )
)